<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>导航栏</title>
    <link rel="stylesheet" href="../../common/reset.css">
    <style>
        body {
            height: 100%;
            background-color: red;
        }

        .nav-bar {
            position: relative;
            height: 82px;
            background: #fff;
        }

        .nav-bar::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #014ECC
        }

        .nav-wrap {
            display: flex;
            /* position: relative; */
            width: 1150px;
            height: 100%;
            margin: 0 auto;
        }

        .nav-logo {
            display: flex;
            width: 160px;
            height: 100%;
            margin-right: 65px;
            justify-content: center;
            align-items: center;
        }

        .nav-links {
            display: flex;
            width: 895px;
            height: 100%;
            justify-content: space-between;
            align-items: center;
        }

        .nav-link,
        .nav2-link {
            position: relative;
            color: #000;
            font-size: 20px;
            font-weight: 500;
            white-space: nowrap;
            cursor: pointer;
        }

        .nav-link::after,
        .nav2-link::after {
            display: block;
            position: absolute;
            top: 30px;
            left: 50%;
            right: 50%;
            content: '';
            height: 2px;
            transition-property: left, right;
            transition-duration: .3s;
            transition-timing-function: ease-out;
            border-radius: 2px;
        }

        .nav2-link::after {
            top: 53px;
        }

        .nav-link:hover,
        .nav2-link:hover {
            color: #246EE6
        }

        .nav-link.active {
            color: #000
        }

        .nav-link:hover::after,
        .nav2-link:hover::after {
            background: #91B6F2;
            left: 0;
            right: 0;
        }


        .nav-link.active::after {
            background: #7F7F7F;
            left: 0;
            right: 0;
        }

        .nav2-wrap {
            display: flex;
            position: absolute;
            left: 0;
            right: 0;
            bottom: -70px;
            height: 70px;
            background: #fff;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 300;
            color: #000;
            transform: rotateX(-90deg);
            transition: all 0.3s;
            /* z-index: -2 */
        }



        .nav2-link {
            margin: 0 54px;
            line-height: 70px;
        }

        .nav-item {
            display: flex;
            height: 100%;
            align-items: center;
            padding: 0 30px;
        }

        .nav-item:hover .nav2-wrap {
            transform: rotateX(0deg);
            z-index: 99;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="nav">
            <div class="nav-bar">
                <div class="nav-wrap">
                    <div class="nav-logo">
                        <img src="./image/logo.png" alt="">
                    </div>
                    <div class="nav-links">
                        <div class="nav-item">
                            <span class="nav-link active">首页</span>
                            <div class="nav2-wrap">
                                <div class="nav2-link">文案11</div>
                                <div class="nav2-link">文案22</div>
                                <div class="nav2-link">文案33</div>
                                <div class="nav2-link">文案44</div>
                            </div>
                        </div>
                        <div class="nav-item">
                            <span class="nav-link">开放平台</span>
                            <div class="nav2-wrap">
                                <div class="nav2-link">文案15</div>
                                <div class="nav2-link">文案26</div>
                                <div class="nav2-link">文案37</div>
                                <div class="nav2-link">文案48</div>
                            </div>
                        </div>
                        <div class="nav-item">
                            <span class="nav-link">商家加盟</span>
                            <div class="nav2-wrap">
                                <div class="nav2-link">文案152</div>
                                <div class="nav2-link">文案263</div>
                                <div class="nav2-link">文案37</div>
                                <div class="nav2-link">文案48</div>
                            </div>
                        </div>
                        <div class="nav-item">
                            <span class="nav-link">联系我们</span>
                            <div class="nav2-wrap">
                                <div class="nav2-link">文案15</div>
                                <div class="nav2-link">文案262</div>
                                <div class="nav2-link">文案37</div>
                                <div class="nav2-link">文案48</div>
                            </div>
                        </div>
                        <div class="nav-item">
                            <span class="nav-link">服务条款</span>
                            <div class="nav2-wrap">
                                <div class="nav2-link">文案15</div>
                                <div class="nav2-link">文案26s</div>
                                <div class="nav2-link">文案371</div>
                                <div class="nav2-link">文案48</div>
                            </div>
                        </div>
                        <div class="nav-item">
                            <span class="nav-link">app下载</span>
                            <div class="nav2-wrap">
                                <div class="nav2-link">文案15</div>
                                <div class="nav2-link">文案26</div>
                                <div class="nav2-link">文案37ad</div>
                                <div class="nav2-link">文案48aa</div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
        </div>
    </div>
</body>
<script>
</script>

</html>